package znbkTestPaperNtxl.api;

import com.example.lancooznbk.service.HttpGetServer;
import com.lancoo.rxretrofitlibrary.Api.BaseApi;
import com.lancoo.rxretrofitlibrary.Api.UserInfo;
import com.lancoo.rxretrofitlibrary.listener.HttpOnNextListener;
import com.trello.rxlifecycle.components.support.RxAppCompatActivity;

import retrofit2.Retrofit;
import rx.Observable;
import znbkTestPaperInfor.ZnbkPaperInfor;
import znbkTestPaperNtxl.ZnbkPaperNtxlInfor;

/**
 * Created by Administrator on 2018\2\9 0009.
 */

public class TrainingDifficultProblemsPaperApi extends BaseApi {
    public TrainingDifficultProblemsPaperApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity) {
        super(listener, rxAppCompatActivity);
    }

    @Override
    public Observable getObservable(Retrofit retrofit) {
        HttpGetServer httpGetServer = retrofit.create(HttpGetServer.class);
        return httpGetServer.getTrainingDifficultProblemsJson(UserInfo.StuId,
                UserInfo.SubjectId,UserInfo.StageNo, ZnbkPaperInfor.QuesID, ZnbkPaperInfor.AnswerState,4);
    }
}